 
<ul method="{{$item->method_name}}">
    <li>
        <div class="d-flex tree-c justify-content-between" style="padding-left:{{isset($item->level)?$item->level*20:20}}px">
                    <div class="d-flex align-items-center" style="width:90%">
                        <div class="custom-control custom-checkbox mr-3" style="width:100%">
                            <div  style="width:100%" class="d-flex">
                                <span>
                                    <i class="icon icon {{$item->icon?$item->icon:'icon-package'}}"></i> 
                                </span>
                                <span class="td" title="菜单名称">{{$item->menu_name}}</span> 

                                <span class="td op" title="控制器名称">{{$item->controller_name}}</span> 

                                <span class="td op" title="方法名称">{{$item->method_name}}</span> 

                                <span class="td" title="是否在导航显示">
                                    {{$item->is_resource}}
                                    @if($item->is_nav)
                                        <span class="icon icon-circle s-12  mr-2 text-success"></span>
                                    @else
                                        <span class="icon icon-circle s-12  mr-2 text-danger"></span>
                                    @endif
                                </span>

                                <span class="td op" title="排序">{{$item->sort}}</span> 

                            </div>
                        </div>
                        <span class="badge badge-success" title="路由路径">{{$item->route_path}}</span>
                    </div>
                    <div class="op d-flex">
                            @if($item->route_path)
                            <form action="{{url('/admin/menu/resource')}}" method="POST" class="ajaxForm mr-2" reload="me" data-title="是否为当前菜单创建资源路由?">
                                @csrf
                                <input type="hidden" value="{{$item->id}}" name="id">
                                <button class="btn-fab btn-fab-sm shadow btn-secondary" title="创建资源路由"><i class="icon-map-signs"></i></button>
                            </form>
                            @endif
                            <a title="编辑" data-mini="{{url('/admin/menu',['id'=>$item->id,'method'=>'edit'])}}" data-title="编辑菜单" class="btn-fab btn-fab-sm btn-primary shadow text-white mr-2"><i class="icon-pencil"></i></a>
                            <form action="{{url('/admin/menu',$item->id)}}" method="POST" class="ajaxForm" reload="me" data-title="是否删除?">
                                @csrf
                                @method('delete')
                                <button class="btn-fab btn-fab-sm shadow btn-danger" title="删除"><i class="icon-delete"></i></button>
                            </form>
                    </div>
        </div>
    </li>
</ul> 